package asteroids.model.programs.expression;

import asteroids.model.programs.type.DoubleType;

public class Sqrt extends Function {

	public Sqrt(int line, int column, E e) {
		super(line, column, e);
	}

	@Override
	public DoubleType getValue() {
		return new DoubleType( Math.sqrt(((DoubleType) getExpression().getValue()).getValue()));
	}

}
